package com.zyl.blog.processing.mapper;

import com.github.yulichang.base.MPJBaseMapper;
import com.zyl.blog.common.domain.file.bean.AttachmentRelation;

/**
 * @version v1.0
 * @ProjectName: Personal_Blog_Server
 * @Package: com.zyl.blog.processing.mapper
 * @ClassName: AttachmentRelationMapper
 * @Description:
 * @Author FinalFantasy
 * @Date 2025/8/14-14:21
 */
public interface AttachmentRelationMapper extends MPJBaseMapper<AttachmentRelation> {

    /**
     * 根据文件ID查询附件关系数量
     * @param fileId 文件ID
     * @return 数量
     */
    long countByFileId(Long fileId);
}
